/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package anttasks.file;

import java.io.File;
import org.apache.tools.ant.BuildException;

/**
 *
 * @author Hue
 */
public class ViewLibraries extends ViewJar {
    private String path;
    
    public void setPath(String path) {
        this.path = path;
    }
    
    @Override
    public void execute() throws BuildException {
        File dir = new File(path);
        String[] files = dir.list();
        for(String s : files) {
            String file = path + File.separatorChar + s;
            setFile(file);
            print();
        }
    }
}
